<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
    <jsp:include page="head.jsp"></jsp:include>
        <script type="text/javascript" src="/delivery/js/jquery.autotextarea.js"></script>
    </head>
    <body>
        <div id="dcWrap">
            <jsp:include page="rightTop.jsp"></jsp:include>
            <jsp:include page="menu.jsp"></jsp:include>
            <div id="dcMain">
                <!-- 当前位置 -->
                <div id="urHere">快递管理系统<b>></b><strong>快递列表</strong> </div>
                <div class="mainBox"
                    style="height:auto!important;height:550px;min-height:550px;">
                    <h3><a href="/delivery/delivery/toAddDevlivery"
                            class="actionBtn add">添加快递</a>快递列表</h3>
                    <!-- 
                    本阶段不实现!!        
                    <div class="filter">
                        <form action="#" method="post">
                            物流公司
                            <select name="cat_id">
                                <option value>请选择</option>
                                <option value="1"> 申通快递</option>
                                <option value="2"> 圆通快递</option>
                                <option value="2"> 韵达快递</option>
                            </select>
                            收件人手机号 <input name="keyword" type="text"
                                class="inpMain" value size="20" />
                            签收状态 <select name="cat_id">
                                <option value>请选择</option>
                                <option value="1">已签收</option>
                                <option value="2"> 未签收</option>

                            </select>
                            <input name="submit" class="btnGray" type="submit"
                                value="筛选" />
                        </form>

                    </div> -->
                    <div id="list">

                        <table width="100%" border="0" cellpadding="8"
                            cellspacing="0" class="tableBasic">
                            <tr>
                                <th width="40" align="center">编号</th>
                                <th width="80" align="center">物流公司</th>
                                <th width="80" align="center">收件人</th>
                                <th width="80" align="center">手机号</th>
                                <th width="80" align="center">送达日期</th>
                                <th align="center">地址</th>
                                <th width="80" align="center">签收状态</th>
                                <th width="80" align="center">操作</th>
                            </tr>
                            <tr>
                                <c:forEach items="${deliveryList}" var="delivery">
                                    <td align="center">${delivery.id}</td>
                                    <td align="center">${delivery.company.companyName}</td>
                                    <td align="center">${delivery.deliveryName}</td>
                                    <td align="center">${delivery.phone}</td>
                                    <td align="center">${delivery.sendTime}</td>
                                    <td align="center">${delivery.address}</td>
                                    <td align="center">
                                        <c:if test="${delivery.state == 1}">
                                            已签收
                                        </c:if>
                                        <c:if test="${delivery.state == 0}">
                                            未签收
                                        </c:if>
                                    </td>
                                    <td align="center">
                                        <a href="/delivery/delivery/editDelivery?id=${delivery.id}">编辑</a> |
<%--                                        <a href="/delivery/delivery/delete.jsp?id=${delivery.id}">删除</a>--%>
                                        <a href="/delivery/delivery/deleteDelivery?id=${delivery.id}">删除</a>
                                    </td>
                            </tr>
                                </c:forEach>
                        </table>
                    </div>
                    <div class="clear"></div>
                    <div class="pager"> <a href="article.php?page=1">第一页</a>
                        <a href="article.php?page=1"> 上一页</a> <a
                            href="article.php?page=1">下一页</a> <a
                            href="article.php?page=1">最末页</a></div> </div>
            </div>
        <jsp:include page="flooter.jsp"></jsp:include>
        <script type="text/javascript">
 
 onload = function()
 {
   document.forms['action'].reset();
 }

 function douAction()
 {
     var frm = document.forms['action'];

     frm.elements['new_cat_id'].style.display = frm.elements['action'].value == 'category_move' ? '' : 'none';
 }
 
 </script>
    </body>
</html>